package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-11-15
 * Time: 17:38
 */
class Base{
    public int a = 8;
    public int b;
    public void methodB(){
        System.out.println("methodB");
    }

}

class De extends Base{
    public int a = 6;
    public void methodD(){
        System.out.println(a);
        System.out.println(super.a);
        System.out.println(b);
        System.out.println("methodD");
    }
    public void methodB(char ch){
        System.out.println("ch");
    }
    public void test(){
        methodB();
        methodB('c');
    }
}
public class Test1 {
    public static void main(String[] args) {
        De de = new De();
        de.methodD();
        de.methodB();
        de.methodB();
        de.test();
    }

}
